package net.example.model.event;

import com.oraycn.esframework.core.ClientType;

import net.example.model.CommunicateMediaType;

import java.io.Serializable;

/**
 * Created by ZN on 2017/3/7.
 */

public class RequestEvent implements Serializable {
    public String requestID;

    public CommunicateMediaType mediaType;

    public ClientType clientType;
    public int messageType;
    public boolean isEcho;
    public String Tag;
    public RequestEvent(String requestID, ClientType clientType, int messageType, CommunicateMediaType mediaType,boolean isEcho,String tag) {
        this.requestID = requestID;
        this.mediaType = mediaType;
        this.clientType = clientType;
        this.messageType = messageType;
        this.isEcho = isEcho;
        this.Tag=tag;
    }

    public String getLoginID() {
        return this.clientType.ordinal() + "#" + this.requestID;
    }
}
